package com.example.test_broadcast_with_signed;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class MyReceiver extends BroadcastReceiver {
    private static final String TAG = "MyReceiver";
    
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "onReceive: receive broadcast1 ");
        Bundle bundle = new Bundle();
        bundle.putString("first", " i am broadcast2 存入的消息");
        setResultExtras(bundle); // 给下一个接收器传递消息
    }
}
